Working with null values

105

Working with null values -

// result will be 3 if authorName?.Length is null
var result = authorName?.Length ?? 3; 
Console.WriteLine(result);

Comments

Submit
0 Comments